import request from "@/utils/request";

// 查询查获登记结果列表
export function listChdjResult(query) {
  return request({
    url: "/user/chdjResult/list",
    method: "get",
    params: query,
  });
}

// 查询查获登记结果详细
export function getChdjResult(chdjResultId) {
  return request({
    url: "/user/chdjResult/" + chdjResultId,
    method: "get",
  });
}
export function getChdjResultById(id) {
  return request({
    url: "/user/chdjResult/byChdjId/" + id,
    method: "get",
  });
}

// 新增查获登记结果
export function addChdjResult(data) {
  return request({
    url: "/user/chdjResult",
    method: "post",
    data: data,
  });
}

// 修改查获登记结果
export function updateChdjResult(data) {
  return request({
    url: "/user/chdjResult",
    method: "put",
    data: data,
  });
}

// 删除查获登记结果
export function delChdjResult(chdjResultId) {
  return request({
    url: "/user/chdjResult/" + chdjResultId,
    method: "delete",
  });
}
